#include "module_propertys.h"

#include "mainwindow.h"
#include "ui_mainwindow.h"

module_propertys::module_propertys()
{
}

void module_propertys::delete_propertys()
{
    foreach (QWidget *w, qApp->topLevelWidgets())
    {
        if (MainWindow *mainwin = qobject_cast<MainWindow*>(w))
        {
            QFrame *f = mainwin->findChild<QFrame *>("module_property");

            if (f)
            {
                delete f;
            }
        }
    }
}
